package com.huoyun.user.service;

import org.springframework.security.core.userdetails.UserDetailsService;

import com.huoyun.user.bean.User;

public interface UserService extends UserDetailsService {
	
	public long saveUser(User user, int[] groupIds);
	
	public User getUserByUsername(String username);
	
	public User getUserById(long userId);
	
	public void changePassword(long userId, String newPassword);
	
	public void updateAvatarByUserId(long userId, String avatarUrl);
	
    public void updateMobilePhoneByUserId(long userId, String mobilePhone);
	
	public void updateEmailByUserId(long userId, String email);
	
	public void updateRealnameByUserId(long userId, String realname);
	
	public void updateBankAccountByUserId(int userId, String bankAccount);
	
	//以下是安全密码相关服务
	public void changeSecurePassword(long userId, String newSecurePassword);

	
	public void updateSalt(long userId, String salt);
	
	public void updateCredit(long credit, long id);

}
